import urllib.request

response = urllib.request.urlopen('http://python.org/')

print(type(response))

print(response.status)
print(response.getheaders())
print(response.getheader('Server'))